import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import axios from "axios";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './store'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//axios.defaults.baseURL = '/api';
let app = createApp(App);
app.use(router)
app.use(ElementPlus,{ size: 'small', locale: zhCn,zIndex: 3000 })
app.use(store)
app.provide('axios', app.config.globalProperties.axios)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
